package alan.springboot2x.zkConfigV2.start.config;

import alan.springboot2x.zkConfigV2.start.scope.RefreshScopeRegistry;
import alan.springboot2x.zkConfigV2.start.zookeeper.CuratorUtil;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @author: Alan
 * @date: 2021/4/3 12:36
 */
public class ConfigImportSelector implements ImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata metadata) {

        return new String[]{
            RefreshScopeRegistry.class.getName(),
                    CuratorUtil.class.getName(),
                SpringValueProcessor.class.getName()
        };

    }
}
